package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.Profile;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenm
 * @create 2019-11-26 9:41
 */
public interface ProfileMapper {

  List<Profile> selectProfile(Profile profile);

  int selectCount(Profile profile);

  int insertProfile(Profile profile);

  List<Profile> checkHasProfile(Profile profile);

  int updateProfile(Profile profile);

  Profile selectByMatId(@Param("matId") Integer matId);

  int deleteProfile(@Param("profileIds") List<Integer> profileIds, @Param("dataState") Integer dataState);

  Profile selectByUuid(@Param("uuid") String uuid);
}
